package com.h3c.nem.task;

import com.h3c.nem.entity.TbTeacher;
import com.h3c.nem.service.ISdDeptService;
import com.h3c.nem.service.ITbTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 同步汇率类
 * 每日
 */

@Component
public class SyncRateTask {

//    @Autowired
//    ISdAllWorkerService sdAllWorkerService;
//    @Autowired
//    CommService commService;

    @Autowired
    ISdDeptService sdDeptService;

    @Autowired
    ITbTeacherService tbTeacherService;

//    @Scheduled(cron = "0 0 5 * * ?")
    void syncWorker(){
//        sdAllWorkerService.syncWorker();
//        commService.initCurrencyRateData();
    }

 /*   @Scheduled(cron = "0 0 5 * * ?")
    public void syncDept(){
        sdDeptService.synceSdDept(true);
    }*/

    //@Scheduled(cron = "0 0 5 * * ?")
//    public void syncTeacher(){
//        tbTeacherService.syncGrade();
//    }
}
